Director Article

Chrome Library Set of 3D Behaviors for Shockwave 3D


Table of Contents

  1. Introduction
  2. Setting Up the 3D Scene of the Car
  3. Setting Up 32-bit Render Format for the Light Beams Alpha Channel
  4. Making the Beam of Light Objects Disappear
  5. Merging the Car Body and the Wheels
  6. Displaying a Video on the Booth Screen

Making the Beam of Light Objects Disappear

You only want to see the beam of light objects when the headlights are on. To do this, use the Model Visibility behavior.

The Model Visibility behavior

Figure 7. The Model Visibility behavior

Drag and drop the Model Visibility behavior onto the 3D scene. The parameter window in Figure 8 appears.

The parameters dialog box for the Model Visibility behavior

Figure 8. The parameters dialog box for the Model Visibility behavior

  1. Select none for the Drawing mode, which means none of the faces of the selected model is to be drawn (in other words, invisible).
  2. Select one of the beam of light object that you want to disappear (in this tutorial, select Left Headlight Ray of light).
  3. Press OK.
  4. Press Play in the Director toolbar or press Enter on the keypad. The movie starts. The left beam of light object disappears.

    The left beam of light object with the Model Visibility behavior applied to it

    Figure 9. The left beam of light object with the Model Visibility behavior applied to it

  5. Repeat steps one to four for the remaining three headlight beams.

Notice that the behaviors used are automatically copied in the internal cast.

The behaviors are copied to the internal cast

Figure 10. The behaviors are copied to the internal cast

You can drag and drop a given behavior from the library as many times as you want using a different set of parameters each time. Only one copy of this behavior will appear in the internal cast. However, a new entry will be added each time in the Behavior tab of the Property inspector with the corresponding parameters. In my case, I have four instances of the Model Visibility behavior:

Figure 10a. Four instances of the Model Visibility behavior in the Behavior pane of the property inspector.

Now the car appears exactly as I want it, without any beams of light:

The beam of light objects non-visible from having the Model Visibility behavior applied to them

Figure 11. The beam of light objects non-visible from having the Model Visibility behavior applied to them